<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
            <title></title>
            <meta name="keywords" content="">
            <meta name="description" content="">
                    <link href="style.css" rel="stylesheet" type="text/css" media="screen">
                        <!-- DC Pagination CSS -->
                    <link type="text/css" rel="stylesheet" href="tsc_pagination.css">
    </head>
            <body>
                <?php require_once './header.php'; ?>
                <hr>
                    <div id="page">
                        <form action="add.php" method="POST">
                            TITLE <input type="text" name="title"/><br/>
                            OVERVIEW <input type="text" name="overview"/><br/>
                            BODY <input type="text" name="body"/><br/>
                            INSERT <input type="submit" name="INSERT" value="add"/>  
                        </form>
                        <?php
                            if(isset($_POST['add'])){
                                $id = $_POST['id'];
                                $title = $_POST['title'];
                                $overview = $_POST['overview'];
                                $body = $_POST['body'];
                                $id_category = $_POST['id_category'];
                                add_admin($id,$title,$overview,$body,$id_category); 
                            }
                        ?>
                        <?php
                            
                        ?>
                    </div>
            </body>
</html>
